.w1400 {
    width: 1400px;
    margin: 0 auto;
}

/* 1. 页面顶部 */
header {
    width: 100%;
    height: 162px;
    padding-top: 0;
    background: #004d95;
    /* 蓝色背景 */
}

.bg {
    background-image: linear-gradient(to right, #1c38b7, #4068cd, #2babdd);
    /* 渐变背景 */
}

.wrap1 {
    width: 1400px;
    height: 162px;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.wrap1 img {
    height: 144px;
    width: 520px;
}

/* 搜索框对齐和登录字样 */
.search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 47px 0 0;
    width: auto;
    height: 70px;
    margin-left: auto;
}

.search_box {
    height: 3.6rem;
    position: relative;
    width: 270px;
    border-top: solid 1px #dcdcdc;
    border-left: solid 1px #dcdcdc;
    border-bottom: solid 1px #dcdcdc;
    border-right: solid 1px #ffffff;
    outline: none;
    border-radius: 20px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}

.search_text {
    width: 100%;
    padding-left: 5px;
    border: none;
    border-radius: 20px;
    height: 30px;
    background-color: transparent;
    flex: 1;
    outline: none;

}

/* 设置placeholder颜色 */
.search_text::placeholder {
    color: rgba(255, 255, 255);
    font-size: 15px;
}

.submit {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: transparent;
    margin-right: 5px;
    cursor: pointer;
    order: -1;
    /* 确保放大镜在输入框之前 */
}



/* 登录*/
.search .fr {
    display: flex;
    align-items: center;
    margin: 0 10px 30px 0;
    padding: 24px 0 0;
    list-style: none;
}

.search ul li {
    margin: 0;
    display: flex;
    align-items: center;
}

.search ul li::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}


.search ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    transition: background 0.3s ease;
    background-color: transparent;
}

/* 2. 主导航栏 */
nav {
    width: 100%;
    background: #004d95;
    /* 蓝色背景 */
    padding: 0;
    font-size: 12px;
    color: white;
}

nav ul {
    width: 1400px;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1;
}

nav ul li {
    position: relative;
    width: 127px;
}

nav ul li a {
    line-height: 50px;
    color: #ffffff;
    font-size: 17px;
    display: block;
    text-align: center;
    position: relative;
}

/* 悬停效果 */
nav ul li a:hover {
    background-color: #0192da;
}

/* 二级菜单样式 */
nav ul li ul {
    width: 127px;
    display: none;
    position: absolute;
    line-height: 42px;
    list-style: none;
    padding: 0;
    margin: 0;
    /*主色为白色的具有透明度的背景*/
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

nav ul li:hover>ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
}

nav ul li ul li a {
    color: #333333;
    text-align: center;
    font-size: 14px;
    line-height: 42px;
}

/* 二级菜单悬停效果 */
nav ul li ul li a:hover {
    background-color: #0192da;
    color: #ffffff;
}

/* 主内容区域 */
/* 轮播图容器 - 消除与导航栏的空隙 */
/* 轮播图容器 - 固定显示区域 */
.carousel-container {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 608px;
    background-color: #f8f9fa;
}

/* 轮播图轨道 - 修改为重叠显示 */
.carousel-track {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%; /* 改为100%宽度 */
    height: 608px;
    display: flex;
}

/* 轮播图动画 - 无缝透明度渐变 */
@keyframes fadeSlide {
    0% {
        opacity: 1; /* 第一张图片完全显示 */
    }
    40% {
        opacity: 1; /* 保持显示 */
    }
    50% {
        opacity: 0; /* 第一张图片淡出 */
    }
    50% {
        opacity: 1; /* 第二张图片同时淡入 */
    }
    90% {
        opacity: 1; /* 保持显示 */
    }
    100% {
        opacity: 0; /* 第二张图片淡出，准备循环 */
    }
}

/* 为每张图片应用不同的动画 */
.carousel-slide:first-child {
    animation: fadeSlide 4s infinite; /* 4秒循环，2秒显示+2秒切换 */
}

.carousel-slide:nth-child(2) {
    animation: fadeSlide 4s infinite 2s; /* 延迟2秒开始，与第一张图片交替 */
}

/* 轮播图幻灯片 - 重叠显示 */
.carousel-slide {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 608px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* 初始隐藏 */
    transition: opacity 2s ease-in-out; /* 2秒渐变过渡 */
}

/* 第一张图片默认显示 */
.carousel-slide:first-child {
    opacity: 1;
}

/* 轮播图图片 */
.carousel-slide img {
    width: 100%;
    height: 608px;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* 悬停时暂停动画 */
.carousel-container:hover .carousel-slide {
    animation-play-state: paused;
}

/* 移除滑动相关的样式 */
.carousel-track::before {
    display: none; /* 移除滑动阴影 */
}

/* 新闻公告区域 - 两栏布局 */
.info-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

/* 左侧图片栏 */
.info-image-section {
    flex: 0 0 40%; /* 固定宽度40% */
    max-width: 400px;
}

.info-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-image-section img:hover {
    transform: scale(1.02);
}

/* 右侧文字栏 */
.info-text-section {
    flex: 1; /* 占据剩余空间 */
}

.info-text-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-text-section li {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-text-section li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-text-section span {
    color: #888;
    font-size: 0.9rem;
    margin-right: 1rem;
    display: inline-block;
    min-width: 80px;
}

.info-text-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.info-text-section p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

.info-text-section a {
    color: #337ab7;
    text-decoration: none;
    display: block;
}

.info-text-section a:hover {
    color: #23527c;
}
/* 新闻公告区域 */
article {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.more{
    float: right;
}

article h2 {
    font-size: 1.6rem;
    color: #333;
}

article a {
    color: #337ab7;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

article ul li {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

article ul li span {
    color: #888;
    font-size: 0.9rem;
    margin-right: 1rem;
}

/* 页脚样式 */
section.footer {
    background-color: #004d95;
    color: white;
    padding: 2rem;
    text-align: center;
}

section.footer h3 {
    font-size: 1.6rem;
}

section.contact p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

img {
    float: right;
    width: 50px;
    height: 50px;
}

